// 构建时间 vite 插件
export const vitePluginBuildTime = () => {
  return {
    name: 'vite-plugin-build-time',
    transformIndexHtml(html) {
      const now = new Date().toLocaleString()
      return html.replace(
        '<body>',
        `<body><!-- Last Build Time ${now} -->`
      )
    }
  }
}
